<%@ page contentType="text/html;charset=utf-8"%>
<%@ include file="admin_header.jsp"%>
<script type="text/javascript"
	src="<c:url value="/js/jquery.pagination.js"/>"></script>
<script type="text/javascript" src="<c:url value="/js/wordlibinfo.js"/>"></script>
<%@ include file="admin_container.jsp"%>
<img src="../images/admin/logo.jpg" />
<div id="content">
<%@ include file="admin_nav.jsp"%>
<div id="right">
<h1 class="topmenu">查看词库信息——${wordLib.wordLibName}</h1>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<th width="70" height="29" scope="col">名称</th>
		<th width="64" scope="col">第一级</th>
		<th width="64" scope="col">第二级</th>
		<th width="64" scope="col">第三级</th>
		<th width="64" scope="col">第四级</th>
		<th width="92" scope="col">创建日期</th>
		<th width="43" scope="col"></th>
    	<th width="44" scope="col"></th>
    	<th width="62" scope="col"></th>
    	<th width="63" scope="col"></th>
	</tr>
	<tr class="member">
		<td height="20">${wordLib.wordLibName}</td>
		<td align="center">${wordLib.firstClass }</td>
		<td align="center">${wordLib.secondClass }</td>
		<td align="center">${wordLib.thirdClass }</td>
		<td align="center">${wordLib.forthClass }</td>
		<td align="center"><fmt:formatDate value="${wordLib.createdDate}" type="date"
			pattern="yyyy-MM-dd"></fmt:formatDate></td>
		<td align="center"><a
			href="<c:url value="/administrator/wordlib.htm"><c:param name="method" value="displayForm"/><c:param name="wordLibID" value="${wordLib.wordLibID }"/></c:url>">编辑</a></td>
		<td align="center"><a
			href="<c:url value="/administrator/wordlib.htm"><c:param name="method" value="delete"/><c:param name="wordLibID" value="${wordLib.wordLibID }"/></c:url>">删除</a></td>
		<td align="center"><a
			href="<c:url value="/administrator/wordlib.htm"><c:param name="method" value="importWords"/><c:param name="wordLibID" value="${wordLib.wordLibID }"/></c:url>">导入单词</a></td>
		<td align="center"><a
			href="<c:url value="/administrator/wordlib.htm"><c:param name="method" value="displayWordForm"/><c:param name="wordLibID" value="${wordLib.wordLibID }"/></c:url>">添加单词</a></td>
	</tr>
</table>

<table id="words" width="100%" border="1" bordercolor="#FFFFFF" cellspacing="0" cellpadding="0" style="margin-top:30px;">
	<tr>
		<th width="100" height="29" scope="col">英文单词</th>
		<th width="170" scope="col">音标</th>
		<th width="255" scope="col">中文含义和例句</th>
		<th width="46" scope="col"></th>
		<th width="46" scope="col"></th>
	</tr>
	<c:forEach var="word" items="${wordList}" varStatus="s">
		<tr class="member">
			<td height="20" align="center">${word.wordEn }</td>
			<td align="center">${word.phonetics}</td>
			<td align="center">
			<ul>
				<c:forEach var="cs" items="${word.cnAndSentenceList}" varStatus="ss">
					<li>
					<div>${cs.cn }</div>
					<c:if test="${cs.sentence != null}">
						<div>例句: ${cs.sentence }</div>
					</c:if></li>
				</c:forEach>
			</ul>
			</td>
			<td align="center"><a
				href="<c:url value="/administrator/wordlib.htm"><c:param name="method" value="displayWordForm"/><c:param name="wordLibID" value="${wordLib.wordLibID }"/><c:param name="wordID" value="${word.wordID }"/></c:url>">编辑</a></td>
			<td align="center"><a
				href="<c:url value="/administrator/wordlib.htm"><c:param name="method" value="deleteWord"/><c:param name="wordLibID" value="${wordLib.wordLibID }"/><c:param name="wordID" value="${word.wordID }"/></c:url>">删除</a></td>
		</tr>
	</c:forEach>
</table>
<div id="pagination" class="pagination"></div>
<input type="hidden" id="wordLibID" value="${wordLib.wordLibID }" />
<input type="hidden" id="totalWordCount"
	value="${wordLib.totalWordCount }" />
</div>
</div>
<%@ include file="admin_footer.jsp"%>